home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
015a
/
abba1bat.zip
/
MOVE.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-11-15
|
1KB
|
43 lines
@echo off
rem this file: MOVE.BAT
rem
rem (C) 1991 Abba Software Co.
rem
if not %1! == ! goto checktwo
echo :::::::::::::::::::::::::::::::::::::::::::::::::::::
echo ::: :::
echo ::: Parameters must be supplied. :::
echo ::: :::
echo ::: Syntax: :::
echo ::: MOVE (\dir\file(set)) (\dir[\file(set)]) :::
echo ::: :::
echo ::: These parameters are the same as those for :::
echo ::: the Copy command. :::
echo :::::::::::::::::::::::::::::::::::::::::::::::::::::
goto end
:checktwo
rem
rem %2 is a filename
rem %2%1 is the root dir and a filename
rem %2\%1 is a directory and a filename
if exist %2 goto itexists
if exist %2%1 goto itexists
if exist %2\%1 goto itexists
goto copy
:itexists
if %2! == ! goto copy
echo ::::::::::::::::::::::::::::::::::::::::::::::
echo ::: :::
echo ::: %1 is already in %2 :::
echo ::: :::
echo ::: to stop copy press the break key, or :::
echo ::: press the Ctl and C keys simultaneously:::
echo ::::::::::::::::::::::::::::::::::::::::::::::
pause
goto copy
:copy
copy %1 %2
if not errorlevel 0 goto end
del %1
:end
echo on